Skip to content

Conversation

Fuzzyma
Copy link

@Fuzzyma Fuzzyma commented Aug 15, 2025

  • Add Tree model with boolean field having default:true
  • Add TestBooleanDefaultBug test that demonstrates the issue
  • Bug: boolean fields with default:true cannot be set to false
  • Confirmed on SQLite, PostgreSQL, and MySQL
  • GORM ignores explicit false value and uses default true instead

- Add Tree model with boolean field having default:true
- Add TestBooleanDefaultBug test that demonstrates the issue
- Bug: boolean fields with default:true cannot be set to false
- Confirmed on SQLite, PostgreSQL, and MySQL
- GORM ignores explicit false value and uses default true instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant